package top.infopub.mgr.mkt.dao;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import top.infopub.generic.GenericDao;
import top.infopub.mgr.mkt.domain.BidBondApplyDomain;
import top.infopub.mgr.mkt.vo.BidBondApplyVo;
import top.infopub.model.mkt.BidBondApply;

import com.github.pagehelper.Page;

/** 投标保证金申请(MKT_BID_BOND_APPLY) **/
@Repository
public interface BidBondApplyDao extends GenericDao<BidBondApply, String> {

    /**
     * 查询分页数据
     * @param bidBondApplyVo
     * @return 
     * @see
     */
    Page<BidBondApplyDomain> selectByDomainWhere(BidBondApplyVo bidBondApplyVo);

    /**
     * 查询-我审批的-分页数据
     * @param bidBondApplyVo
     * @return 
     * @see
     */
    Page<BidBondApplyDomain> selectMyCheckByDomainWhere(BidBondApplyVo bidBondApplyVo);

    /**
     * 根据id查询详情
     * @param id 主键id
     * @return 
     * @see
     */
    BidBondApplyVo selectById(String id);

    /**
     * 新增记录
     * @param bidBondApply 
     * @see
     */
    void insertById(BidBondApplyVo bidBondApply);

    BidBondApply selectByKey(@Param("id") String id);
}